package com.jy.datapipeline.importserver.service;

import com.jy.datapipeline.common.commoninterface.EasyExcelExecutionStrategy;
import com.jy.datapipeline.common.exception.GlobalException;
import com.jy.datapipeline.common.vo.ReturnVo;
import com.jy.datapipeline.importserver.entity.ImportRule;
import org.quartz.SchedulerException;

import java.util.List;

/**
 * @类名 ImportRuleService
 * @描述 TODO
 * @作者 白条君
 * @创建日期 2023/4/17 10:12
 * @版本 1.0
 */
public interface ImportRuleService extends EasyExcelExecutionStrategy {

    Long addImportRule(ImportRule importRule) throws GlobalException;

    ReturnVo queryByPage(Long pageNo, Long pageSize, String ruleId, String sourceDatabase, String targetDatabaseId);

    void modifyRule(ImportRule importRule) throws GlobalException;

    void deleteRule(Long id) throws GlobalException, SchedulerException;

    List<ImportRule> queryAllNames(String ruleName);

    ImportRule selectImportRule(String ruleId);

    void modifyImportRuleUpdateTime(ImportRule importRule) throws GlobalException;

    ImportRule queryOneByRuleName(String ruleName);
}
